﻿using System;

namespace String
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("请输入你的地址");
            string str = Console.ReadLine();
            int a = str.IndexOf("市");
            string b = a.ToString();
            if (b.Equals("市")) {
                str = b.Substring(0, a);
            }
            Console.WriteLine("你的籍贯是：{0}",str);
        }
    }
}
